package com.learn.code.proxy.statical;

/**
 * @author : 翌擎科技
 * @date : 2022/8/1 14:11
 */
public class Proxy extends Subject{
    private RealSubject subject;

    @Override
    public void request() {
        if (null==subject){
            subject=new RealSubject();
        }
        subject.request();
    }
}
